<extend name='Yg/index' />
<block name='main'>
	<div class="col-md-12 " >
	                <div class="row">
                    <div class="col-lg-12">
                        <h2 class="page-header">
                            留言板
                        </h2>
                        <ol class="breadcrumb">
                            <li class="active">
                                <i class="fa fa-dashboard"></i> 您的位置 => 留言板
                            </li>
                        </ol>
                    </div>
                </div>
		
		<form action="<{:U('Message/add')}>" method="post">
			<script id="container" name="mcontent" type="text/plain" style="width:600px;height:200px">
		          
		    </script>
		    <div>
			<input type="hidden" name="mtalkid" value="<{$Think.session.user.name}>">
			<button onclick="submitEditor()"/>  提交</button>
			</div>
		</form>
		
		
		<script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEDITOR/ueditor.config.js"></script>
		<script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEDITOR/ueditor.all.js"></script>
		  <script type="text/javascript">
       		var ue = UE.getEditor('container');
       		function submitEditor()  {        
       			if(ue.hasContents()){      
       				ue.sync();
       		   	    document.MyForm.submit();   
       				}  
       			}  
    	  </script>
	</div>
</block>